import 'package:aweb5/bean/aplus/share_material_entity.dart';

shareMaterialEntityFromJson(ShareMaterialEntity data, Map<String, dynamic> json) {
	if (json['imgList'] != null) {
		data.imgList = json['imgList']?.map((v) => v?.toString())?.toList()?.cast<String>();
	}
	if (json['video'] != null) {
		data.video = json['video']?.map((v) => v?.toString())?.toList()?.cast<String>();
	}
	if (json['text'] != null) {
		data.text = json['text']?.toString();
	}
	if (json['isDownload'] != null) {
		data.isDownload = json['isDownload']?.toString();
	}
	return data;
}

Map<String, dynamic> shareMaterialEntityToJson(ShareMaterialEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['imgList'] = entity.imgList;
	data['video'] = entity.video;
	data['text'] = entity.text;
	data['isDownload'] = entity.isDownload;
	return data;
}